package edu.xidian.bdilab.jrbigdata.controller.government;
import edu.xidian.bdilab.jrbigdata.controller.response.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import edu.xidian.bdilab.jrbigdata.service.government.login.GovernmentLoginService;
/**
 * @ClassName EnterpriseLoginController
 * @Description TODO
 * @Author tuantuan
 * @Date 2019/3/20 下午8:31
 * @Version 1.0
 * @Attention Copyright (C), 2004-2019, BDILab, XiDian University
 **/


@RestController
@Api(tags = {"governmentLogin-政府用户登录功能"})
/**
 * @ClassName GovernmentLoginController
 * @Description TODO
 * @Author tuantuan
 * @Date 2019/3/20 下午8:43
 * @Version 1.0
 * @Attention Copyright (C), 2004-2019, BDILab, XiDian University
 **/
public class GovernmentLoginController {

    @Autowired
    public GovernmentLoginService GovernmentLoginService;
    @RequestMapping(value = "government/login", method = RequestMethod.POST)
    //
    public ResponseResult enterprise_login(@RequestParam String name, @RequestParam String password) {

        ResponseResult responseResult= GovernmentLoginService.responsResult(name,password);
        return responseResult;

    }
}
